import QtQuick 2.3

ListModel
{
    id: menuModel

    Component.onCompleted:
    {
        menuModel.append({type: "userInfo"})

        // user not registered
        if(0)
        {

        }
        // user registered
        else if(0)
        {
            menuModel.append({type: "title", value: "history"})
        }
        // administrator
        else if(1)
        {
            menuModel.append({type: "title", value: "admin"})
            menuModel.append({type: "entry", value: "Add ad", identifier_: "add_ad", icon: "plus"})
            menuModel.append({type: "entry", value: "Add commercial", identifier_: "add_com", icon: "dashboard"})
        }

        menuModel.append({type: "title", value: "configuration"})
        menuModel.append({type: "entry", value: "Start session", identifier_: "start_session", icon: "user"})
        menuModel.append({type: "entry", value: "Register", identifier_: "register", icon: "users"})
        menuModel.append({type: "entry", value: "Settings", identifier_: "settings", icon: "cog"})
        menuModel.append({type: "entry", value: "Send suggestion", identifier_: "suggestion", icon: "send"})
        menuModel.append({type: "entry", value: "Share", identifier_: "share", icon: "link"})

        menuModel.append({type: "footer"})
    }
}
